package com.bml.architect.seata.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author Fox
 */

@ApiModel(description = "订单实体")
public class Order {


    @ApiModelProperty(dataType = "int", notes = "订单ID")
    private Integer id;

    @ApiModelProperty(dataType = "string", notes = "订单ID")
    private String userId;


    @ApiModelProperty(dataType = "int", notes = "商品编号")
    private String commodityCode;

    @ApiModelProperty(dataType = "int", notes = "订单数量")
    private Integer count;

    @ApiModelProperty(dataType = "int", notes = "订单金额")
    private Integer money;

    @ApiModelProperty(dataType = "int", notes = "订单状态")
    private Integer status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCommodityCode() {
        return commodityCode;
    }

    public void setCommodityCode(String commodityCode) {
        this.commodityCode = commodityCode;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", userId='" + userId + '\'' +
                ", commodityCode='" + commodityCode + '\'' +
                ", count=" + count +
                ", money=" + money +
                ", status=" + status +
                '}';
    }
}
